home *** CD-ROM | disk | FTP | other *** search
- /*
- $VER: InfoList_setcomment.dopus 2.92 (95.01.04 18:55:58)
-
- Funktion: Dies ist ein Rexx-Script für DOpus4.0+. Mit Hilfe von Infolist
- werden, vom aktuellen View, alle Einträge auf ihren Dateityp getestet.
- Die Ausgabe von Infolist wird dann in den Komentar, bei DOpus,
- geschrieben. Dabei wird der Komentar, der Files, NICHT verändert.
-
- Benötigt werden:
- InfoList
- DOpus 4.0+ runing
- temporäres Dir "T:"
-
- Aufruf: RX InfoList_setcomment.dopus
-
- Programmierer: Lutz Hanke, Dorfstr. 43, 01825 Breitenau, Germany
- */
-
- OPTIONS RESULTS
- ADDRESS 'DOPUS.1'
-
- busy on
- Status 3
- active = RESULT
- status 13 active
- Quellpath = RESULT
-
-
- ADDRESS 'COMMAND' 'Infolist "'Quellpath'" >t:il files lformat %n/%c'
- if rc = 0 then do
- if open('il','t:il') then do
- do while ~EOF('il')
- string = readln('il')
- parse var string name'/'comment
- if name ~= '' then do
- fileinfo '"'name'"' '\' active
- parse var result a.1 '\' a.2 '\' a.3 '\' a.4 '\' a.5 '\' a.6 '\' a.7 '\' a.8 '\' a.9 '\'
- removefile '"'name'" 0"'
- addfile '"'name'"' a.2 a.4 a.7 '"'comment'"' a.9 0 0
- end
- end
- call close('il')
- displaydir active /* alles neu aufbauen */
- end
- else 'request tempräres File konnte nicht geöffnet werden ??'
- end
- else 'request Infolist lieferte einen Fehler, Ursache ??'
-
- busy off
-
- exit 0
-
-
-